﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NetMonitor.NetApp
{
    public partial class PointImage : Form
    {
        Bitmap _image1 = null;

        public Bitmap Image1
        {
            get { return _image1; }
            set { _image1 = value; }
        }
        Bitmap _image2 = null;

        public Bitmap Image2
        {
            get { return _image2; }
            set { _image2 = value; }
        }
        Bitmap _image3 = null;

        public Bitmap Image3
        {
            get { return _image3; }
            set { _image3 = value; }
        }   

        private int imgGroup;
        public int ImgGroup
        {
            get { return imgGroup; }
        }

        public PointImage()
        {
            InitializeComponent();
            pictureBox1.Image = Image.FromFile(Application.StartupPath + "/images/discon_bling.gif");
        }

        private void bt_submit_Click(object sender, EventArgs e)
        {
            if(radioButton1.Checked)            
                imgGroup = 0;                
            else if(radioButton2.Checked)
                imgGroup = 1;
            else if (radioButton3.Checked)
                imgGroup = 2;
            else if (radioButton4.Checked)
                imgGroup = 3;
            else if (radioButton5.Checked)
                imgGroup = 4;
            else if (radioButton6.Checked)
                imgGroup = 5;
            else if (radioButton7.Checked)
                imgGroup = 6;
            else if (radioButton8.Checked)
                imgGroup = 7;
            else if (radioButton9.Checked)
                imgGroup = 8;
            else if (radioButton10.Checked)
                imgGroup = 9;
            
            /*
            Image1 = imageList1.Images[imgGroup];
            Image2 = imageList1.Images[imgGroup + 1];
            Image3 = imageList1.Images[imgGroup + 2];
            */

            Close();
        }

        public ImageList Icons
        {
            get { return imageList1; }
        }
        
    }
}
